import request from '@/utils/request'

// 查询合同管理列表
export function listDealLeaseContract(query) {
  return request({
    url: '/contract/dealLeaseContract/list',
    method: 'get',
    params: query
  })
}

// 查询合同管理详细
export function getDealLeaseContract(id) {
  return request({
    url: '/contract/dealLeaseContract/' + id,
    method: 'get'
  })
}

// 保存合同管理
export function saveDealLeaseContract(data) {
  return request({
    url: '/contract/dealLeaseContract/save',
    method: 'post',
    data: data
  })
}

// 删除合同管理
export function delDealLeaseContract(id) {
  return request({
    url: '/contract/dealLeaseContract/' + id,
    method: 'delete'
  })
}

// 导出合同管理
export function exportDealLeaseContract(query) {
  return request({
    url: '/contract/dealLeaseContract/export',
    method: 'get',
    params: query
  })
}

// 计算期限
export function monthlyCalculation(data) {
  return request({
    url: '/contract/dealLeaseContract/monthlyCalculation',
    method: 'post',
    data: data
  })
}

